<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>

<script type="text/javascript">
	onload = function(){
		//document.getElementById('l')
		//l.innerHTML = 'sadassd';
		
		document.getElementsByName('hanqiliang')[0].innerHTML = 'haha'
	}

</script>
<div id='l' name='hanqiliang'>
	<div id='s' name='hanqiliang'></div>
</div>
</body>
</html>